<script lang="ts">

import { useMessage } from 'naive-ui'
import { defineComponent } from 'vue'

// content
export default defineComponent({
  setup() {
    const message = useMessage()
    
    // message.success("Success message")
    
    return {
      warning(value: string) {
        message.warning(value,{ closable: true,duration: 5000 })
      },
      success(value: string) {
        message.success(value,{closable: true, duration: 5000 })
      },
      info(value: string) {
        message.info(value,{ closable: true,duration: 5000 })
      },
      error(value: string) {
        message.error(value,{ closable: true,duration: 5000 })
      }
    }
  }
})
</script>
<template>

</template>ß